<?php
    $pathPartials="pages/";
    $httpCanonical='http://'.$_SERVER['SERVER_NAME'].'/';
    $noIndex="../";
    $page ='';
    if(isset($_REQUEST['page'])){
	    $page=$_REQUEST['page'];
    }


    switch($page){
        case 'reserved':
            include('../model/PDO.php');
            include('reservedController.php');
        break;
        case 'presentation':
            $path = $pathPartials.'Presentation.php';
            $canonical= $httpCanonical.'presentation/';
            include('../'.$path);
        break;
         case 'home':
            $noIndex="../";
            $canonical= $httpCanonical."accueil";
            $path = $pathPartials.'Home.php';
            include('../'.$path);
        break;
        case 'bungalow':
            $noIndex="../";
            $canonical= $httpCanonical."hebergement/bungalow";
            $path = $pathPartials.'bungalow.php';
            include('../'.$path);
        break;
        case 'tente':
            $noIndex="../";
            $canonical= $httpCanonical."hebergement/tente";
            $path = $pathPartials.'tente.php';
            include('../'.$path);
        break;
        case 'mobilhome':
            $noIndex="../";
            $canonical= $httpCanonical."hebergement/mobilhome";
            $path = $pathPartials.'mobilhome.php';
            include('../'.$path);
        break;
        case 'contact':
            $noIndex="../";
            $canonical= $httpCanonical."contact/";
            $path = $pathPartials.'contact.php';
            include('../'.$path);
        break;
        default:
            $noIndex="";
            $canonical= $httpCanonical."accueil";
            $path = $pathPartials.'Home.php';
        break;
    }
?>